#ifndef MYCOIN_H
#define MYCOIN_H

#include <QPushButton>
#include <QDebug>
#include <QPixmap>
#include <QMouseEvent>
#include <QTimer>

class MyCoin : public QPushButton
{
    Q_OBJECT
public:
    explicit MyCoin(QWidget *parent = nullptr);
    MyCoin(QString coinImage, int flag);
    void changeStatus();
    // 测试代码
    int currentIndex = 0;
    QTimer* trans;
    QTimer* retrans;
    int flag; // 默认是金币面
    int min = 1;
    int max = 8;
    int m_x,m_y; // 在地图中的位置
    bool btnWin;
    void mousePressEvent(QMouseEvent* event) override;

signals:

};

#endif // MYCOIN_H
